<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>list</title>
</head>
<body>
<div id="content">
    <h3 class="admin_link_bar">
        <jsp:include page="inc.jsp"></jsp:include>
    </h3>
    <table width="800" cellspacing="0" cellPadding="0" id="listTable" border="1">
        <thead>
        <tr>
            <td>用户标识</td>
            <td>用户名称</td>
            <td>用户密码</td>
            <td>用户状态</td>
            <td>用户操作</td>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${users}" var="user">
            <tr>
                <td>${user.id }</td>
                <td><a href="${user.id }" class="list_link">${user.username}</a></td>
                <td>${user.password }&nbsp;</td>
                <td>
                    <c:if test="${user.locked eq 1 }">
                        <span class="emp">停用</span>
                        <a href="updateStatus/${user.id }" class="list_op">启用</a>
                    </c:if>
                    <c:if test="${user.locked eq 0 }">
                        <span>启用</span>
                        <a href="updateStatus/${user.id }" class="list_op">停用</a>
                    </c:if>
                    &nbsp;
                </td>
                <td>
                    <a href="update/${user.id }" class="list_op">更新</a>
                    &nbsp;
                    <a href="listRes/${user.id }" class="list_op">查询管理资源</a>
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>
</body>
</html>